package com.jt9003.service;

import com.jt9003.pojo.Drugs;
import com.jt9003.pojo.Warehouse;

import java.util.List;
import java.util.Map;

public interface ConfimReceiptService {
    //分页显示,模糊查询根据药品类型和单据号查询未确认入库的入库单
    public List<Warehouse> getWarehouseList(Map map);
    //查询未入库的的单据
    public Integer warCount(Map param );

    //根据单据号删除入库单据
    public int deleteWar(String documentNo);

    //根据单据号删除入库单据对应的药品信息
    public int deleteDrugs(String documentNo);

    public int updateWarehouse(Warehouse warehouse);
    public int updateDrugs(Drugs drugs);

    /*确认入库单页面
     *点击修改或者查看详情时，根据单据id连表查询入库单和药品信息
     * */
    public Warehouse selectWarAndDrugs(String documentNo);


    //确认入库单页面，确认入库，修改入库状态
    public  int  updateWarStrtus(String documentNo);
}
